import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '域名',
    align: "center",
    dataIndex: 'yuming'
  },
  {
    title: '续费时间',
    align: "center",
    dataIndex: 'yumingStartttime',
    customRender:({text}) =>{
      text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
      return text;
    },
  },
  {
    title: '结束时间',
    align: "center",
    dataIndex: 'yumenEndtime',
    customRender:({text}) =>{
      text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
      return text;
    },
  },
  {
    title: '管理网站',
    align: "center",
    dataIndex: 'yumingWeb'
  },
  {
    title: '管理用户名',
    align: "center",
    dataIndex: 'yumingUsername'
  },
  {
    title: '域名密码',
    align: "center",
    dataIndex: 'yumingPassword'
  },
  {
    title: '剩余天数',
    align: "center",
    dataIndex: 'yumingStopday'
  },
];

// 高级查询数据
export const superQuerySchema = {
  yuming: {title: '域名',order: 0,view: 'text', type: 'string',},
  yumingStartttime: {title: '续费时间',order: 1,view: 'date', type: 'string',},
  yumenEndtime: {title: '结束时间',order: 2,view: 'date', type: 'string',},
  yumingWeb: {title: '管理网站',order: 3,view: 'text', type: 'string',},
  yumingUsername: {title: '管理用户名',order: 4,view: 'text', type: 'string',},
  yumingPassword: {title: '域名密码',order: 5,view: 'text', type: 'string',},
  yumingStopday: {title: '剩余天数',order: 6,view: 'number', type: 'number',},
};
